package com.lc.controller;

import com.lc.feign.CustomerFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Author:LiChuang
 * Date: 2022/8/1 10:12
 */
@RestController
public class CustomerController {

    @Resource
    private CustomerFeign customerFeign;

    @GetMapping("/customer1")
    public String customer1(){
        System.out.println("消费者一位");
        String s = customerFeign.provider1();
        return "消费者1" + s;
    }

}
